@echo off

IF NOT EXIST profiles\profiles.xml.%1 (
    echo ERROR: file "profiles\profiles.xml.%1" not found
    pause
) ELSE (
    copy profiles\profiles.xml.%1 profiles.xml
    call mvn clean package -Dmaven.test.skip=true -Dfile.encoding=UTF-8
)

